package com.xquant.trade.trade.entity;


import com.xquant.common.engine.xPP.request.CalcEngineParam;
import com.xquant.trade.utils.ResponseVo;
import com.xquant.trade.risk.entity.SceneResponse;

import java.util.concurrent.Callable;


public class DurationThread implements Callable<SceneResponse> {


    private CalcEngineParam calcEngineParam;
    private Trade trade;
    private String uCode;

    /**
     * 重新构造方法
     *
     * @param calcEngineParam
     * @param trade
     * @param uCode
     */
    public DurationThread(  CalcEngineParam calcEngineParam, Trade trade, String uCode) {
        this.calcEngineParam = calcEngineParam;
        this.trade = trade;
        this.uCode = uCode;
    }

    @Override
    public SceneResponse call() throws Exception {
        SceneResponse sRes = new SceneResponse();
        sRes.setResponseVo(ResponseVo.success());
        sRes.setuCode(this.uCode);
        sRes.setTrade(this.trade);
        return sRes;
    }

}

